package com.zxj.databaseframework.bean;

import com.zxj.databaseframework.annotation.DbField;
import com.zxj.databaseframework.annotation.DbTable;

/**
 * Created by zuo on 2018/3/8.
 */
@DbTable("t_user")
public class User {
    @DbField("stu_id")
    private String stuId;
    private Integer age;
    private String name;
    private String password;

    public User(){};

    public User(String stuId, Integer age, String name, String password) {
        this.stuId = stuId;
        this.age = age;
        this.name = name;
        this.password = password;
    }

    public String getStuId() {
        return stuId;
    }

    public void setStuId(String stuId) {
        this.stuId = stuId;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "stuId='" + stuId + '\'' +
                ", age=" + age +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
